<!-- 订单 -->
<template>
  <div>
    <dispersed v-if="dispersedShow" ref="dispersedRefs"></dispersed>
    <focus v-if="focusShow" ref="focusRefs"></focus>
  </div>
</template>

<script>
import dispersed from "../dispersed.vue"
import focus from "../focus.vue"
export default {
  components: {
    dispersed,focus
  },
  data() {
    return {
        id:undefined,
        childShowType:undefined,
        dispersedShow:false,
        focusShow:false,
    };
  },
  mounted: function () {
      this.id = this.$route.query.id;
      this.childShowType = this.$route.query.childShowType;
      var id = this.id
      var childShowType = this.childShowType
      if(childShowType == 0){
        this.dispersedShow = true;
        this.$nextTick(() => {
         this.$refs.dispersedRefs.init(id)
        })
      }else{
        this.focusShow = true;
        this.$nextTick(() => {
          this.$refs.focusRefs.init(id)
        })
      }
  },
  created() {

  },
  methods: {

  }
};
</script>

<style>

</style>
